﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using IDI.Studio.Core;

namespace IDI.Studio.Client.WinClient.Data
{
    public class ExchangeRate : Entity
    {
        [Required, StringLength(50)]
        public string Name { get; set; }

        public Guid BaseCurrencyId { get; set; }

        public Guid TranCurrencyId { get; set; }

        public virtual Currency BaseCurrency { get; set; }

        public virtual Currency TranCurrency { get; set; }

        public virtual List<ExchangeRateDetail> Details { get; set; }

        public ExchangeRate()
        {
            this.Details = new List<ExchangeRateDetail>();
        }
    }
}
